package com.ajk.server.service;
import java.util.List;

import com.ajk.server.model.CreditsCategoryDict;
import com.ajk.server.model.query.CreditsCategoryDictQuery;

/**
 * 积分类型  <br>
 * dict_credits_category <br>
 * v1.0 2016-05-01
 */
 public interface CreditsCategoryDictService {
	
	/**
 	*根据ID删除 积分类型
 	*/
 	public Integer deleteCreditsCategoryDictById(Integer id);
 	
 	/**
 	*新增 积分类型
 	*/
 	public Integer batchInsertCreditsCategoryDict(List<? extends CreditsCategoryDict> creditsCategoryDicts);
 	
 	/**
 	*新增 积分类型
 	*/
 	public Integer insertCreditsCategoryDict(CreditsCategoryDict domain);
 
 	
 	/**
 	*更新 积分类型
 	*/
 	public Integer updateCreditsCategoryDict(CreditsCategoryDict domain);
 	
 	/**
 	*根据ID查询 积分类型
 	*/
 	public CreditsCategoryDict findCreditsCategoryDictById(Integer id);

	/**
 	*通过query 查询 积分类型
 	*/
	public List<CreditsCategoryDict> findCreditsCategoryDictByQuery(CreditsCategoryDictQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countCreditsCategoryDictByQuery(CreditsCategoryDictQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<CreditsCategoryDict> findCreditsCategoryDictByIds(List<Integer> ids);
 	
 	/**
 	*根据name查询 积分类型
 	*/
	public CreditsCategoryDict findByName(String name);
	
	/**
 	*获取所有字典 积分类型
 	*/
	public List<CreditsCategoryDict> findAll();
	
}	